package com.qf.dto;/*
 *徐韬
 *2021/10/26
 *18:46
 */

import com.qf.pojo.checkNull;
import com.qf.pojo.checkType;
import org.springframework.util.ObjectUtils;

public class UserDto implements checkNull {
    private String usercode;
    private String password;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }

    @Override
    public boolean isNull(checkType type) {
        return ObjectUtils.isEmpty(usercode) || ObjectUtils.isEmpty(password) || password.length() <8 || usercode.length() <5;
    }
}
